﻿namespace SourceCodeRepository.Model.ValidationRules.CodeSnippetRules
{
    using Infra.Validation;

    /// <summary>
    /// Code Snippet validation rules set.
    /// </summary>
    public class CodeSnippetRuleSet : RulesSet<CodeSnippet>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeSnippetRuleSet"/> class.
        /// </summary>
        public CodeSnippetRuleSet()
        {
            base.AddRule(new ContributorInSnippetEmptyValidationRule());
            base.AddRule(new SnippetEmptyValidationRule());
            base.AddRule(new LanguageInSnippetValidationRule());
        }
    }
}
